﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmRegistrarUsuario.aspx.cs" Inherits="SISLOG.Web.frmRegistrarUsuario" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:FormView ID="fvRegistrarUSuario" runat="server" 
    DataSourceID="ObjectDataSourceRegistrarUsuario" DefaultMode="Edit" 
        onpageindexchanging="fvRegistrarUSuario_PageIndexChanging">
    <EditItemTemplate>
        dni:
        <asp:TextBox ID="dniTextBox" runat="server" Text='<%# Bind("dni") %>' />
        <br />
        nombres:
        <asp:TextBox ID="nombresTextBox" runat="server" Text='<%# Bind("nombres") %>' />
        <br />
        apellidoPaterno:
        <asp:TextBox ID="apellidoPaternoTextBox" runat="server" 
            Text='<%# Bind("apellidoPaterno") %>' />
        <br />
        apellidoMaterno:
        <asp:TextBox ID="apellidoMaternoTextBox" runat="server" 
            Text='<%# Bind("apellidoMaterno") %>' />
        <br />
        idArea:&nbsp;<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("idArea") %>'></asp:TextBox>
        <asp:ObjectDataSource ID="ObjectDataSourceArea" runat="server" 
            SelectMethod="GetAllFromArea" TypeName="SISLOG.BusinessLogic.AreaBL">
        </asp:ObjectDataSource>
        <br />
        contraseña:
        <asp:TextBox ID="contraseñaTextBox" runat="server" 
            Text='<%# Bind("contraseña") %>' />
        <br />
        Area:
        <asp:TextBox ID="AreaTextBox" runat="server" Text='<%# Bind("Area") %>' />
        <br />
        <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" 
            CommandName="Update" Text="Actualizar" />
        &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" 
            CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
    </EditItemTemplate>
    <InsertItemTemplate>
        dni:
        <asp:TextBox ID="dniTextBox" runat="server" Text='<%# Bind("dni") %>' />
        <br />
        nombres:
        <asp:TextBox ID="nombresTextBox" runat="server" Text='<%# Bind("nombres") %>' />
        <br />
        apellidoPaterno:
        <asp:TextBox ID="apellidoPaternoTextBox" runat="server" 
            Text='<%# Bind("apellidoPaterno") %>' />
        <br />
        apellidoMaterno:
        <asp:TextBox ID="apellidoMaternoTextBox" runat="server" 
            Text='<%# Bind("apellidoMaterno") %>' />
        <br />
        Area:
        <asp:DropDownList ID="DropDownList1" runat="server" 
            DataSourceID="ObjectDataSourceArea" DataTextField="NombreArea" 
            DataValueField="IdArea">
        </asp:DropDownList>
        <asp:ObjectDataSource ID="ObjectDataSourceArea" runat="server" 
            onobjectcreating="ObjectDataSourceArea_ObjectCreating1" 
            SelectMethod="GetAllFromArea" TypeName="SISLOG.BusinessLogic.AreaBL">
        </asp:ObjectDataSource>
        <br />
        contraseña:
        <asp:TextBox ID="contraseñaTextBox" runat="server" 
            Text='<%# Bind("contraseña") %>' />
        <br />
        Area:
        <asp:TextBox ID="AreaTextBox" runat="server" Text='<%# Bind("Area") %>' />
        <br />
        <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" 
            CommandName="Insert" Text="Insertar" />
        &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" 
            CausesValidation="False" CommandName="Cancel" Text="Cancelar" />
    </InsertItemTemplate>
    <ItemTemplate>
        dni:
        <asp:Label ID="dniLabel" runat="server" Text='<%# Bind("dni") %>' />
        <br />
        nombres:
        <asp:Label ID="nombresLabel" runat="server" Text='<%# Bind("nombres") %>' />
        <br />
        apellidoPaterno:
        <asp:Label ID="apellidoPaternoLabel" runat="server" 
            Text='<%# Bind("apellidoPaterno") %>' />
        <br />
        apellidoMaterno:
        <asp:Label ID="apellidoMaternoLabel" runat="server" 
            Text='<%# Bind("apellidoMaterno") %>' />
        <br />
        idArea:&nbsp;<br />contraseña:
        <asp:Label ID="contraseñaLabel" runat="server" 
            Text='<%# Bind("contraseña") %>' />
        <br />
        Area:
        <asp:Label ID="AreaLabel" runat="server" Text='<%# Bind("Area") %>' />
        <br />
        <asp:LinkButton ID="EditButton" runat="server" CausesValidation="False" 
            CommandName="Edit" Text="Editar" />
        &nbsp;<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False" 
            CommandName="New" Text="Nuevo" />
    </ItemTemplate>
</asp:FormView>
<asp:ObjectDataSource ID="ObjectDataSourceRegistrarUsuario" runat="server" 
    DataObjectTypeName="SISLOG.BusinessEntities.Usuario" 
    InsertMethod="RegistrarUsuario" 
    onobjectcreating="ObjectDataSourceRegistrarUsuario_ObjectCreating" 
    SelectMethod="GetAllFromUsuario" TypeName="SISLOG.BusinessLogic.UsuarioBL" 
    UpdateMethod="RegistrarUsuario"></asp:ObjectDataSource>
</asp:Content>
